package com.gqb.ssm.service.impl;

import com.gqb.ssm.mapper.UserMapper;
import com.gqb.ssm.pojo.User;
import com.gqb.ssm.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by 小泽玛丽罗 on 2016/11/24.
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    public User login(User user) {
        return userMapper.login(user);
    }

    public void addUser(User user) {
        userMapper.add(user);
    }
}
